<template>
  <keep-alive>
    <router-view/>
  </keep-alive>
</template>

<script setup lang="ts">
import {useStore} from "@/store";

const sidebarStatus = localStorage.getItem('sidebarStatus');
if (!sidebarStatus) {
  localStorage.setItem('sidebarStatus', '0')
}

const store = useStore()
if (!store.getTheme) {
  store.setTheme('#1890FF')
}
if (!store.getSideTheme) {
  store.setSideTheme('dark')
}
store.setLayoutSize('default')
</script>
